<?php include_once './header.php'; ?>
<?php 
include('config.php'); 
if (isset($_POST['submitted'])) { 
foreach($_POST AS $key => $value) { $_POST[$key] = mysql_real_escape_string($value); } 
$sql = "INSERT INTO `contacto` ( `nombreContacto` ,  `apellidoContacto` ,  `emailContacto` ,  `telefonoContacto` ,  `paisContacto`  ) VALUES(  '{$_POST['nombreContacto']}' ,  '{$_POST['apellidoContacto']}' ,  '{$_POST['emailContacto']}' ,  '{$_POST['telefonoContacto']}' ,  '{$_POST['paisContacto']}'  ) "; 
mysql_query($sql) or die(mysql_error()); 
echo "Added row.<br />"; 
echo "<a href='listCli.php'>Back To Listing</a>"; 
} 
?>

<form action='' method='POST'> 
<p><b>NombreContacto:</b><br /><input type='text' name='nombreContacto'/> 
<p><b>ApellidoContacto:</b><br /><input type='text' name='apellidoContacto'/> 
<p><b>EmailContacto:</b><br /><input type='text' name='emailContacto'/> 
<p><b>TelefonoContacto:</b><br /><input type='text' name='telefonoContacto'/> 
<p><b>PaisContacto:</b><br /><input type='text' name='paisContacto'/> 
<p><input type='submit' value='Add Row' /><input type='hidden' value='1' name='submitted' /> 
</form> 



<?php include_once './footer.php'; ?>